﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
namespace e2
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void TestShowAllOrders()
        {
            OrderService service = new OrderService();
            service.ShowAllOrder();
        }

        [TestMethod]
        public void TestChange()
        {
            OrderService service = new OrderService();
            service.ChangeMenu();
        }
        [TestMethod]
        public void TestDeleteMenu()
        {
            OrderService service = new OrderService();
            service.DeleteMenu();
        }
        [TestMethod]
        public void TestQueryMenu()
        {
            OrderService service = new OrderService();
            service.QueryMenu();
        }
        [TestMethod]
        public void TestSort()
        {
            OrderService service = new OrderService();
            service.Sort();
        }
        [TestMethod]
        public void TestExport()
        {
            string filename = "orders.xml";
            OrderService service = new OrderService();
            service.Export(filename);
        }
        [TestMethod]
        public void TestImport()
        {
            string filename = "orders.xml";
            OrderService service = new OrderService();
            service.Import(filename);
        }
    }
}
